import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import store from "src/store/index";
import App from "src/App";

const render = Component => {
    ReactDOM.render(
        <Component />,
        document.getElementById("root"),
    );
};

render(App);

if (module.hot) {
    module.hot.accept(() => {
        render(App);
    });
}
